package com.chixing.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chixing.mapper.ProductDetailsMapper;
import com.chixing.pojo.ProductDetails;
import com.chixing.service.IProductDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IProductDetailsServiceImpl implements IProductDetailsService {
    @Autowired
    private ProductDetailsMapper productDetailsMapper;
    @Override
    public ProductDetails selectProductDetailis(Integer productId) {
        QueryWrapper<ProductDetails> wrapper = new QueryWrapper<>();
        wrapper.eq("product_id",productId);
        ProductDetails productDetails = productDetailsMapper.selectOne(wrapper);
        return productDetails;
    }
}
